package week09;
import java.util.*;
public class pta01 {
	//package test;
	
	

		public static void main(String[] args) {
			int arr[]=new int [5];
			String s=null;
			Scanner sc=new Scanner(System.in);;
			while(true){
				String choice =sc.next();
				try {
					if (choice.equals("arr")){
						int index =sc.nextInt();
						arr[index]=1;
					}
					else if(choice.equals("null")){
						s.length();
					}
					else if(choice.equals("cast")){
						Object o=new String("arr");
						
						//String line =sc.next();
						Integer value =(Integer) o;
					}
					else if(choice.equals("num")){
						String ss =sc.next();
						Integer.parseInt(ss);
					}
					else{
						break;
					}
					
				}
				catch(Exception e){
					System.out.println(e);
				}
			}
			sc.close();
		}
	}


